﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Navigation.aspx.cs" Inherits="Liguo.Store.Navigation" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="../css/navi.css" />
    <script type="text/javascript" src="../js/navi.js"></script>
</head>
<body>
    <script type="text/javascript">
        var strGoodsTypes = "<%=GetGoodsTypes()%>";
        var goodsTypes = strGoodsTypes.split(",");
    </script>
    <div id="PARENT">
        <ul id="nav">
            <li><a href="#Menu=ChildMenu" onclick="DoMenu('ChildMenu')" style="font-size: 24px;">商品种类</a>
                <ul id="ChildMenu" class="collapsed">
                    <script type="text/javascript">
                        var len = goodsTypes.length;
                        document.write("<li><a href=\"Display.aspx\" target=\"_top\">所有分类</a></li>");
                        for (i = 0; i < len; i+=2) {
                            document.write("<li><a href='Display.aspx?type=" + goodsTypes[i] + "' target='_top'>" + goodsTypes[i + 1] + "</a></li>");
                        }
                    </script>
                </ul>
            </li>
        </ul>
    </div>
    <script type="text/javascript">
        GetMenuID(); //*这两个function的顺序要注意一下，不然在Firefox里GetMenuID()不起效果
        menuFix();
    </script>
</body>
</html>
